package top.loveyumin1314.music.bean;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import top.loveyumin1314.music.code.ActionCode;

/**
 * author Kerry
 * date 2017/10/10
 * desp null
 */

public class ActionBean extends BaseBean {

    @JsonProperty("actionId")
    protected Integer actionId;

    @JsonProperty("userName")
    protected String userName;

    @JsonProperty("actionDetail")
    protected String actionDetail;

    @JsonIgnore
    public String getUserName() {
        return userName;
    }

    @JsonIgnore
    public void setUserName(String userName) {
        this.userName = userName;
    }

    @JsonIgnore
    public String getActionDetail() {
        return actionDetail;
    }

    @JsonIgnore
    public void setActionDetail(String actionDetail) {
        this.actionDetail = actionDetail;
    }


    @JsonIgnore
    public Integer getActionId() {
        return actionId;
    }

    @JsonIgnore
    public void setActionId(Integer actionId) {
        this.actionId = actionId;
    }

    @JsonIgnore
    public void setActionCode(ActionCode ac) {
        this.actionId = ac.actionId;
        this.actionDetail = ac.actionDetail;
    }


    @Override
    public String toString() {
        return "ActionBean{" +
                "actionId=" + actionId +
                ", userName='" + userName + '\'' +
                ", actionDetail='" + actionDetail + '\'' +
                ", userId='" + userId + '\'' +
                ", time=" + time +
                '}';
    }
}
